package com.wholeintech.ble;

import android.bluetooth.BluetoothGatt;

/**
 * Created by Administrator on 2016-04-20.
 */
public class DevInfoItem {

	private int cnt;
    private BluetoothGatt mBtGatt;
    private String devMAC;
    private String devId;
    private int devType;
    private int state;
    private long timestamp;
    int index=0;

    public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

    public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

    private DevInfoItem(){}

    public DevInfoItem(String id,int type,String mac,BluetoothGatt mGatt) {
        devId = id;
        devType = type;
        devMAC = mac;
        mBtGatt = mGatt;
        this.timestamp=0;
    }

    public int getDevType() {return devType;}
    public BluetoothGatt getBtGatt() {return mBtGatt;}
    public String getDevMAC() {return devMAC;}
    public String getDevId() {return devId;}

    public void setState(int s) {state = s;}
    public int getState() {return state;}
    
    public void setCnt(int s) {cnt = s;}
    public int getCnt(){return cnt;}

    public void setBtGatt(BluetoothGatt m) {mBtGatt = m;}

}
